package com.lanou.test;

import com.lanou.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 姚云鹏
 * Create at: 2018/6/12 14:16
 */
public class AnnoAopTest2 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new
                ClassPathXmlApplicationContext("spring2.xml");
        UserService userService = ac.getBean
                (UserService.class);
        System.out.println(userService.getClass());

        userService.add();

    }
}
